package com.tianyang.yukuaifu.business.auth.contract;

import android.content.Intent;

import com.tianyang.yukuaifu.base.IBaseExtraView;
import com.tianyang.yukuaifu.base.IBasePresenter;
import com.tianyang.yukuaifu.business.auth.bean.BankRegOutput;
import com.tianyang.yukuaifu.business.auth.bean.IdCardOutput;

import java.util.Map;

/**
 * Description：服务商实名认证
 * Created by xyj on 2024/3/22
 */
public interface AuthServiceContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 显示图片
         */
        void showPhotoView(String urlStr, String photoType);

        /**
         * 显示身份证
         */
        void showIdCardView(IdCardOutput output);

        /**
         * 显示银行信息
         */
        void showBankCardView(BankRegOutput output);
    }

    interface Presenter extends IBasePresenter {

        /**
         * 弹出拍照弹框
         */
        void showSelectImgSourceView(String currentPhotoType);

        /**
         * 拍照回调
         */
        void onActivityResult(int requestCode, int resultCode, Intent data);

        /**
         * 实名认证
         */
        void sendIdCert(Map<String, String> map);
    }
}
